package model

import "gorm.io/gorm"

// 订单表
type Order struct {
	gorm.Model
	OrderOn      string  `gorm:"type:varchar(50);commit:订单编号"`
	UserId       int     `gorm:"type:int;commit:用户id"`
	DeliveryId   int     `gorm:"type:int;commit:闪送员id"`
	StartAddress string  `gorm:"type:varchar(50);commit:取件地址"`
	EndAddress   string  `gorm:"type:varchar(50);commit:收件地址"`
	StartPhone   string  `gorm:"type:varchar(18);commit:发件人电话"`
	EndPhone     string  `gorm:"type:varchar(18);commit:收件人电话"`
	GoodsTypeId  int     `gorm:"type:int;commit:商品类型"`
	Amount       float32 `gorm:"type:decimal(10,2);commit:订单总金额"`
	OrderStatus  int     `gorm:"type:int;commit:订单状态: 1-待接单 2-已接单 3-配送中 4-已送达 5-已完成"`
}
